home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 029a / mgbonus.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-06-11  |  6KB  |  122 lines

  1. Echo Off
  2. if "%1"=="" goto firstScreen
  3. if "%2"=="" goto error2
  4. if "%3"=="" goto error2
  5. :firstScreen
  6. Cls
  7. Echo ┌────────────────────────────────────────────────────────────────────┐
  8. Echo │            Lotus Magellan 2.0 Bonus Viewer Disk Install            │
  9. Echo │          Copyright (C) 1990 Lotus Development Corporation          │
  10. Echo │                        All rights reserved.                        │
  11. Echo ├────────────────────────────────────────────────────────────────────┤
  12. Echo │                                                                    │
  13. Echo │    This batch program will install the Bonus Viewer Disk from      │
  14. if "%1"=="" goto aDrive
  15. Echo │    drive %1 to the directory %2%3.
  16. Echo │                                                                    │
  17. goto rest
  18. :aDrive
  19. Echo │    drive A to the directory C:\MAG2.                               │
  20. Echo │                                                                    │
  21. :rest
  22. Echo │                                                                    │
  23. Echo │    If you desire to install from a different drive or to a         │
  24. Echo │    different directory name (e.g., from drive B and to D:\MAGELLAN │
  25. Echo │    press [Ctrl][Break] to quit from this program and then type:    │
  26. Echo │                                                                    │
  27. Echo │                INSTALL  B:  D:  \MAGELLAN                          │
  28. Echo │                                                                    │
  29. Echo │    Note:  if you are not installing to C:\MAG2 from the A drive,   │
  30. Echo │           you must specify all three parameters.                   │
  31. Echo │                                                                    │
  32. Echo │    Otherwise, PRESS ANY KEY to continue installing.                │
  33. Echo └────────────────────────────────────────────────────────────────────┘
  34. pause
  35. Cls
  36. if not "%1"=="" goto otherDrive
  37. Echo Installing Bonus Viewer Disk files from drive A to C:\MAG2.
  38. Echo Please wait . . .
  39. Echo ─────────────────────────────────────────────────────────────────────────────
  40. C:
  41. CD \MAG2
  42. COPY A:BONUS.DOC >NUL
  43. COPY A:*.ICO >NUL
  44. COPY A:*.PIF >NUL
  45. CD MGVIEWER
  46. if exist aworksdb.vw2 DEL AWORKSDB.VW2
  47. A:VIEWERS >NUL
  48. goto endScreen
  49. :otherDrive
  50. if "%2"=="" goto error2
  51. if "%3"=="" goto error2
  52. Echo Installing Bonus Viewer Disk files from drive %1 to %2%3.
  53. Echo Please wait . . .
  54. Echo ─────────────────────────────────────────────────────────────────────────────
  55. %2
  56. CD %3
  57. COPY %1BONUS.DOC >NUL
  58. COPY %1*.ICO >NUL
  59. COPY %1*.PIF >NUL
  60. CD MGVIEWER
  61. if exist aworksdb.vw2 DEL AWORKSDB.VW2
  62. %1VIEWERS >NUL
  63. :endScreen
  64. Cls
  65. Echo ┌────────────────────────────────────────────────────────┐
  66. Echo │      Lotus Magellan 2.0 Bonus Viewer Disk Install      │
  67. Echo │    Copyright (C) 1990 Lotus Development Corporation    │
  68. Echo │                  All rights reserved.                  │
  69. Echo ├────────────────────────────────────────────────────────┤
  70. Echo │                                                        │
  71. Echo │                                                        │
  72. Echo │    The Magellan 2.0 Bonus Viewer Disk files have       │
  73. Echo │    been successfully installed onto your hard disk.    │
  74. Echo │                                                        │
  75. Echo │                                                        │
  76. Echo │    To start Magellan, type MG [ENTER].                 │
  77. Echo │                                                        │
  78. Echo │                                                        │
  79. Echo │    Note:  For the latest notes and information about   │
  80. Echo │           Magellan, type:   TYPE BONUS.DOC [ENTER].    │
  81. Echo │                                                        │
  82. Echo │                                                        │
  83. Echo └────────────────────────────────────────────────────────┘
  84. CD ..
  85. goto end
  86. :error
  87. Echo ┌──────────────────────────────────────────────────────────────┐
  88. Echo │         Lotus Magellan 2.0 Bonus Viewer Disk Install         │
  89. Echo │       Copyright (C) 1990 Lotus Development Corporation       │
  90. Echo │                     All rights reserved.                     │
  91. Echo ├──────────────────────────────────────────────────────────────┤
  92. Echo │       The Magellan Bonus Viewer Disk was NOT                 │
  93. Echo │       successfully installed onto your hard disk.            │
  94. Echo │                                                              │
  95. if not "%1"=="" goto difDrive
  96. Echo │        ■ The directory C:\MAG2 may not exist.                │
  97. Echo │                                                              │
  98. goto more
  99. :difDrive
  100. Echo │        ■ The directory %2%3 may not exist.
  101. Echo │                                                              │
  102. :more
  103. Echo │                                                              │
  104. Echo │        ■ Check to see if the disk is full, and clear         │
  105. Echo │          some space if necessary.                            │
  106. Echo │                                                              │
  107. Echo │        ■ Access to the disk may be read-only.                │
  108. Echo │                                                              │
  109. Echo │        ■ Consider the possibility of a disk error.           │
  110. Echo └──────────────────────────────────────────────────────────────┘
  111. goto end
  112. :error2
  113. Echo If you are copying from your A drive to the \MAG2 directory on your
  114. Echo C: drive, type INSTALL.  Otherwise, you must specify three parameters
  115. Echo to this batch file.  E.g., if you are copying files from your A drive
  116. Echo to the \MAGELLAN directory on your D: drive, type
  117. Echo           INSTALL  A:  D:  \MAGELLAN
  118. Echo You must specify the colons after the drive letters, and put a space
  119. Echo between the hard drive and the directory name.
  120. Echo On
  121. :end
  122.